<script type="module">
  console.log("hello world");
  import utils from "../index.js";
  console.log(utils)
  console.log(utils.keyRepeat([{a:1,b:2},{a:1,c:3},{a:2,b:2}],'b'))
  // console.log(utils.toSstringify({a:1,b:2}))
  // console.log(utils.toSstringify({a:1,b:2}))
  // console.log(utils.toParse(location.href))
  // console.log(utils.toParse('https://www.bilibili.com/video/BV1Z8agzsE7m/?spm_id_from=333.1007.tianma.1-3-3.click&vd_source=292edfeda6b182b2bd4645561e7e3244'))
  // console.log(utils.formatTimeDown(1758279600000,1758366000000));
  // setInterval(() => {
  //   let text=utils.formatTimeDown(new Date().getTime(),1758366000000)
  //   console.log(text.join(':'));
  // }, 1000);
  // console.log(utils.isType("123"));
  // console.log(utils.isType("yyyy-MM-dd hh:mm:ss", "string"));
  // console.log(utils.isType("dd", "date"));
  // console.log(utils.formatTime(1756538783651));
  // console.log("现在", utils.formatTime('2025-08-31 21:08:23'));
  // console.log("今天", utils.formatTimeRange("day", '2025-08-31 21:08:23'));
  // console.log("昨天", utils.formatTimeRange("yesterday", '2025-08-31 21:08:23'));
  // console.log("明天", utils.formatTimeRange("tomorrow", '2025-08-31 21:08:23'));
  // console.log("本月", utils.formatTimeRange("month", '2025-08-31 21:08:23'));
  // console.log("上个月", utils.formatTimeRange("lastMonth", '2025-08-31 21:08:23'));
  // console.log("下个月", utils.formatTimeRange("nextMonth", '2025-08-31 21:08:23'));
  // console.log("今年", utils.formatTimeRange("year", '2025-08-31 21:08:23'));
  // console.log("近七天", utils.formatTimeRange("sevenDay", '2025-08-31 21:08:23'));
  // console.log("近三月", utils.formatTimeRange("sevenMonth", '2025-08-31 21:08:23'));
  // console.log("近半年", utils.formatTimeRange("sixMonth", '2025-12-01 21:08:23'));
  // console.log(utils.formatTimeRange("week", `2025-08-30 15:26:23`));
</script>
